adding another list field to every page structure.
Signed-off-by: Keir Fraser <keir@xensource.com>
static DECLARE_WORK(balloon_worker, balloon_process, NULL);
static struct timer_list balloon_timer;
-#define PAGE_TO_LIST(p) (&(p)->ballooned)
-#define LIST_TO_PAGE(l) list_entry((l), struct page, ballooned)
+#define PAGE_TO_LIST(p) (&(p)->lru)
+#define LIST_TO_PAGE(l) list_entry((l), struct page, lru)
#define UNLIST_PAGE(p) \
do { \
list_del(PAGE_TO_LIST(p)); \
};
#if NR_CPUS >= CONFIG_SPLIT_PTLOCK_CPUS
spinlock_t ptl;
-#endif
-#ifdef CONFIG_XEN
- struct list_head ballooned;
#endif
};
pgoff_t index; /* Our offset within mapping. */